#ifndef __BASIC_STRIP_ALL_STRING__
#define __BASIC_STRIP_ALL_STRING__

// find all occurences of a substring in another string and split 
//   split the string using the substring as delimiter
//   the delimiter *is not propagated* in the result
//   if keepEmpty is true, then also empty substrings are stored
//   this may happen in such a case:
//
//        string in=" a XX";
//        vector<string> res = strip_all( in, "XX", true );
//
//   res has now size 2, and its elements are: res[0] = " a "
//                                             res[1] = ""
//
//   set keepEmpty to false if you do not want the last string to be stored
//   if empty strings are stored, the original sequence can be extrapolated
//   if not, only significant fields are taken
//
//   return a vector of string, with the substring as delimiter
//


#include <vector>
#include <string>

std::vector<std::string> strip_all( std::string line, std::string match, bool keepEmpty=true );


#endif  //  __BASIC_STRIP_ALL_STRING__
